Skip to content

feat: implement initial Go application with CLI, web UI, and core functionalities.#1

Open
lertsoft wants to merge 2 commits intomasterfrom
go-cli
Open

feat: implement initial Go application with CLI, web UI, and core functionalities.#1
lertsoft wants to merge 2 commits intomasterfrom
go-cli

Conversation

@lertsoft
Copy link
Owner

@lertsoft lertsoft commented Feb 10, 2026

No description provided.

@lertsoft
Copy link
Owner Author

@codex review this PR

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2c63b4f62

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +31 to +35
s := bufio.NewScanner(os.Stdin)
for s.Scan() {
line := s.Bytes()
var req rpcReq
if err := json.Unmarshal(line, &req); err != nil {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Parse MCP stdio frames instead of newline-delimited JSON

This server reads stdin with bufio.Scanner and attempts to json.Unmarshal each line as a complete request, but MCP stdio clients send framed messages (header lines plus JSON body), not one-JSON-object-per-line. As a result, normal MCP traffic is discarded before dispatch, so serve-mcp cannot interoperate with standard MCP clients.

Useful? React with 👍 / 👎.

}

func (g *GitExtractor) GetCommitDiff(commit1 string, commit2 string) ([]ParsedDiff, error) {
rangeArg := commit1 + "^.." + commit1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle root commits in single-commit diff generation

The single-commit path builds commit^..commit, which fails for root commits because they do not have a parent. In repositories with one commit, or when users select the first commit in history, this returns a git error instead of showing the commit’s changes.

Useful? React with 👍 / 👎.

Comment on lines +186 to +187
if m.section == secHistory {
if len(m.commits) == 0 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Render selected commit diffs in history mode

Pressing Enter in history mode loads a commit diff into selectedDiffs, but View() always renders the commit list whenever m.section == secHistory. That means the loaded diff is never shown in the TUI, so the history “select commit” flow does not actually display commit content.

Useful? React with 👍 / 👎.

Comment on lines +111 to +112
parts := strings.Split(strings.TrimPrefix(r.URL.Path, "/diff/branch/"), "/")
if len(parts) < 2 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Stop splitting branch refs from slash-delimited path segments

This endpoint splits /diff/branch/... by / and only uses parts[0] and parts[1], which breaks common branch names containing slashes (for example feature/foo). Requests with such names are misparsed into wrong refs and produce incorrect diffs or git errors.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant